home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 1.iso
/
desktop
/
papcw10.zip
/
CALENDAR.WCM
next >
Wrap
Text File
|
1995-02-11
|
799b
|
32 lines
// use Wincmd to invoke Calendar using the date that has
// been put in the clipboard.
handle = checkrunning ("Calendar")
if (handle)
appactivate (GetWindowText (handle))
else
do
calendar.exe
delay (500)
handle = CheckRunning ("Calendar")
if (handle == 0)
exit
MoveWindow (handle, 10, 10)
sendkeys ("%vm")
end
sendkeys ("%sd") // Open date dialog
sendkeys (GetClipText()) // Enter date
sendkeys ("{enter}") // |
exit
checkrunning:
handle = GetWindow (hmain, 0)
while (handle <> 0) do
text = GetWindowText (handle)
if (substr (text, 0, length(arg(1))) == arg(1))
return handle
handle = GetWindow (handle, 2)
end
return 0